package hibernate;

import java.sql.Timestamp;
import java.util.Date;

/**
 * OrderInfo entity. @author MyEclipse Persistence Tools
 */

public class OrderInfo implements java.io.Serializable {

	// Fields

	private String orderId;
	private UserInfo userInfo;
	private HouseInfo houseInfo;
	private Date startTime;
	private Date endTime;
	private Double price;
	private String orderState;
	private Timestamp orderDate;

	// Constructors

	/** default constructor */
	public OrderInfo() {
	}

	/** full constructor */
	public OrderInfo(String orderId, UserInfo userInfo, HouseInfo houseInfo,
			Date startTime, Date endTime, Double price, String orderState,
			Timestamp orderDate) {
		this.orderId = orderId;
		this.userInfo = userInfo;
		this.houseInfo = houseInfo;
		this.startTime = startTime;
		this.endTime = endTime;
		this.price = price;
		this.orderState = orderState;
		this.orderDate = orderDate;
	}

	// Property accessors

	public String getOrderId() {
		return this.orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public UserInfo getUserInfo() {
		return this.userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	public HouseInfo getHouseInfo() {
		return this.houseInfo;
	}

	public void setHouseInfo(HouseInfo houseInfo) {
		this.houseInfo = houseInfo;
	}

	public Date getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getOrderState() {
		return this.orderState;
	}

	public void setOrderState(String orderState) {
		this.orderState = orderState;
	}

	public Timestamp getOrderDate() {
		return this.orderDate;
	}

	public void setOrderDate(Timestamp orderDate) {
		this.orderDate = orderDate;
	}

}